home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 63142 / 63142.xpi / older / tkp38.xpi / chrome / content / ff-overlay.js < prev    next >
Text File  |  2010-01-24  |  716b  |  16 lines

  1. ketkpin.onFirefoxLoad = function(event) {
  2.   document.getElementById("contentAreaContextMenu")
  3.           .addEventListener("popupshowing", function (e){ ketkpin.showFirefoxContextMenu(e); }, false);
  4. };
  5.  
  6. ketkpin.showFirefoxContextMenu = function(event) {
  7.   // show or hide the menuitem based on what the context menu is on
  8.    
  9.    document.getElementById("context-ketkpin").hidden = gContextMenu.onLink;
  10.    document.getElementById("context-ketkpin2").hidden = gContextMenu.onLink;
  11.    document.getElementById("context-ketkpin3").hidden = !gContextMenu.onLink;
  12.    document.getElementById("context-ketkpin4").hidden = !gContextMenu.onLink;
  13. };
  14.  
  15. window.addEventListener("load", ketkpin.onFirefoxLoad, false);
  16.